import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/img',
    name: 'uploadImg',
    component: () => import('../views/uploadImg.vue')
  },
  {
    path: '/upload',
    name: 'DialogUploadFile',
    component: () => import('../views/DialogUploadFile.vue')
  },
  {
    path: '/time',
    name:'CountTime',
    component: () => import('../views/CountTime.vue')
  },
  {
    path: '/reg',
    name:'formSubmit',
    component: () => import('../views/formSubmit.vue')
  },
  {
    path: '/socket',
    name:'SocketCpn',
    component: () => import('../views/SocketCpn.vue')
  },
  {
    path: '/money',
    name: 'moneyCpn',
    component: () => import('../views/moneyCpn.vue')
  },
  {
    path: '/next',
    name: 'nextTickCpn',
    component: () => import('../views/nextTickCpn.vue')
  },
  {
    path: '/insertTime',
    name: 'insertTime',
    component: ()=> import('../views/insertTime.vue')
  },
  {
    path: '/twoSwiper',
    name: 'twoSwiper',
    component: ()=> import('../views/twoSwiper.vue')
  },
  {
    path: '/studyStore',
    name: '01VueXState',
    component: ()=> import('../views/01VueXState.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
